package cn.iocoder.yudao.module.tms.controller.admin.statistics.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 统计查询 Request VO")
@Data
public class StatisticsQueryReqVO {

    @Schema(description = "时间范围类型：DAY-今日, WEEK-本周, MONTH-本月, QUARTER-近3个月, CUSTOM-自定义")
    private String timeRangeType;

    @Schema(description = "自定义开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @Schema(description = "自定义结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @Schema(description = "统计维度：BAND-Band统计, PRODUCT-产品统计, CUSTOMER-客户统计")
    private String dimension;
}
